import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
import VueRouter from 'vue-router';
import loginVue from "@/views/login/index.vue"
import expressioncamIndex from '@/views/expression/expressionIndex.vue'
import facevue from '@/views/face/index.vue';
Vue.use(VueRouter);

// 将 Vue.use(ElementUI) 移到 new Vue() 之前
Vue.use(ElementUI);

const routers = [
  {
  path: '',
  component: expressioncamIndex,
  children:[
    {
      path:'/exp',
      component:expressioncamIndex
    },]
  }

  

];

const router = new VueRouter({
  routes: routers,
});

Vue.config.productionTip = false;

new Vue({
  router,
  render: (h) => h(App),
}).$mount('#app');